﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Tauren.Business.Entity.Enum;

namespace Tauren.Business.Entity.Input
{
    public class Position_Input
    {
        public virtual int PositionId { get; set; }
        public virtual int ParentId { get; set; }
        /// <summary>
        /// 单位编码
        /// </summary>
        /// </summary
        [Display(Name = "职位编码"), Required(ErrorMessage = "{0}不能为空!"), StringLength(10, ErrorMessage = "{0}不超过20个字符"), RegularExpression(@"^([a-zA-Z0-9_]){1,20}$", ErrorMessage = "请输入英文字符、数字组成的{0}")]
        public virtual string PositionCode { get; set; }

        /// <summary>
        /// 中文名称
        /// </summary>
        [Display(Name = "中文名称"), Required(ErrorMessage = "{0}不能为空!"), StringLength(100, ErrorMessage = "{0}不超过100个字符")]
        public virtual string CNName { get; set; }
        /// <summary>
        /// 英文名称
        /// </summary>
        [Display(Name = "英文名称"), Required(ErrorMessage = "{0}不能为空!"), StringLength(100, ErrorMessage = "{0}不超过100个字符")]
        public virtual string ENName { get; set; }
        public virtual int? OrgId { get; set; }
        public virtual string OrgType { get; set; }
        public virtual int PositionType { get; set; }

        public virtual List<PersonInfo_InPut> PersonInfos { get; set; } = new List<PersonInfo_InPut>();

        public virtual List<Position_Input> Parents { get; set; } = new List<Position_Input>();
    }
}
